package com.yanqu.road.server.manager.cricket.entity.business;

import com.yanqu.road.server.manager.cricket.entity.DbCricketHotBattleLog;
import com.yanqu.road.server.manager.cricket.entity.dao.CricketHotBattleLogDaoImpl;

import java.util.Map;

public class CricketCrossBusiness {

    public static boolean saveDbCricketHotBattleLog(DbCricketHotBattleLog data) {
        return CricketHotBattleLogDaoImpl.newInstance().saveData(data);
    }

    public static Map<Long, DbCricketHotBattleLog> getDbCricketHotBattleLogMap(int limit) {
        return CricketHotBattleLogDaoImpl.newInstance().getDataMap(limit);
    }

}
